package drds.global_transaction.api.api;

/**
 * Resource that can be managed by Resource Manager and involved into global
 * transaction.
 */
public interface Resource
{

	/**
	 * see: master and slave data-source should be with the same resource group id.
	 */
	String getResourceGroupId();

	/**
	 * see: url of a data-source could be the id of the db data-source resource.
	 */
	String getResourceId();

}
